package com.simple.handler.demo004;

import com.simple.handler.entity.Request;

public class HandlerClient {
    public static void main(String[] args) {
        Request request = new Request("唐三",2);

        AbstractHandler directLeaderHandler = new DirectLeaderHandler();
        AbstractHandler deptManagerHandler = new DeptManagerHandler();
        AbstractHandler gManagerHandler = new GManagerHandler();

        directLeaderHandler.setNextHandler(deptManagerHandler);
        deptManagerHandler.setNextHandler(gManagerHandler);

        directLeaderHandler.handler(request);


    }
}
